<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var ranking=prompt("请输入你的名词","1");
        if(ranking==1){
            alert("获得奖学金1000元");
        }else if(ranking==2){
            alert("获得奖学金800元");
        }else if(ranking==3){
            alert("获得奖学金300yuan");
        }else{
            alert("继续努力");
        }
    </script>
</body>
</html>